local ClientOHOH = _G.ClientOHOH;
local M = ClientOHOH.class.new(script, ClientOHOH.files.Client_PlayerComponent());
local CallBackManager = ClientOHOH.load.CallBackManager();

function M.new(self,...)
	return M(self,...);
end;


function M.ctor(self, parent)
	M.super.ctor(self, parent);	

    
    self.player=self.parent
    for _,part in pairs( game.Workspace:WaitForChild("Weapon"):GetChildren()) do
        
        CallBackManager:AddRbxConnect(self,part.Touched, function(obj,chPart)

            if not _G.CommonOHOH.load.GeneralTool().IsMeTouchEvent(chPart) then
                return 
            end
            local goodsId=    part:GetAttribute("goodsId")


            self.player.RobuxBuyEvent:Action(goodsId)

        end)

    end
end;

function M.dtor(self)
	M.super.dtor(self);
end;

return M
